package net.xiaosaguo.mymall.product.feign;

import net.xiaosaguo.common.pojo.dto.es.SkuEsModel;
import net.xiaosaguo.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * description: es 服务 远程调用
 *
 * @author xiaosaguo
 * @date 2020/06/20
 */
@FeignClient("mymall-search")
public interface SearchFeignService {

    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
